package com.liang.crawlerjd.service;

import com.liang.crawlerjd.dao.ItemDao;
import com.liang.crawlerjd.entity.Item;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class ItemServiceImpl implements ItemService {
    @Autowired
    private ItemDao itemDao;

    @Override
    public void save(Item item) {
        itemDao.save(item);
    }

    @Override
    public List<Item> findAll(Item item) {
        return itemDao.findAll(item);
    }
}
